package com.suggestion.biz;

import java.util.List;

import com.suggestion.bean.OfSuggestion;
import com.suggestion.bean.Suggestion;
import com.suggestion.dao.ISuggestionDAO;

public class SuggestionSerice  implements ISuggestion{
	private ISuggestionDAO suggestionDAO;
	
	public ISuggestionDAO getSuggestionDAO() {
		return suggestionDAO;
	}

	public void setSuggestionDAO(ISuggestionDAO suggestionDAO) {
		this.suggestionDAO = suggestionDAO;
	}

	public boolean AddSuggestion(OfSuggestion ofSuggestion) {
		return suggestionDAO.AddSuggestion(ofSuggestion);
	}

	public List<Suggestion> getAllSuggestion() {
		return suggestionDAO.getAllSuggestion();
	}

	public int deleteSuggestion(long ofId) {
		return	suggestionDAO.deleteSuggestion(ofId);
	}

	public List<OfSuggestion> getAllSuggestionLimit() {
		return suggestionDAO.getAllSuggestionLimit();
	}

}
